<link href="/assets/css/wechat/oauth.css?v={:time()}" rel="stylesheet">
<div id="app">
    <dk-box :page-config="pageConfig">
        <form-create :option="option" :rule="rule"></form-create>
    </dk-box>
</div>
<script src="/assets/js/form-create.min.js"></script>
<script src="/assets/js/wechat/comonents.js?v={:time()}"></script>
<script src="/assets/js/wechat/oauth.js?v={:time()}"></script>

<script>

    var vm = new Vue({
        el: "#app",
        data: {
            rule: [],
            option: {
                submitBtn: false,
                resetBtn: false
            },
            pageConfig: {},
            faApi: null
        },
        mounted() {
            this.getDiy()
        },
        methods: {
            getDiy() {
                dk.post('/h5/diy/getDiy', {key: 'oauth'}).then(res => {
                    this.rule = res.data.rule
                    console.log(res.data)
                    this.pageConfig = res.data.config
                })
            }
        }
    })
</script>
